# coding:utf-8
import redis


#创建连接池
r = redis.Redis(host='10.50.30.213',password="fangdd@redis", port=6379, db=0)

# #创建链接对象
# r=redis.Redis(connection_pool=pool)
r.set('shangdd-scf.fin.fdd:user_login:2','1234')
print(r.get('shangdd-scf.fin.fdd:user_login:2'))